// -----------------------------------------------------------------------
//  <copyright file="FunctionAuthStatus.cs" company="LiuliuSoft">
//      Copyright (c) 2022-2023 DaprPlus. All rights reserved.
//  </copyright>
//  <site>https://www.dapr.plus</site>
//  <last-editor>郭明锋</last-editor>
//  <last-date>2023-12-21 14:27</last-date>
// -----------------------------------------------------------------------

using DaprPlus.Properties;

using OSharp.Localized;


namespace DaprPlus.Authorization;

/// <summary>
/// 权限检查结果状态
/// </summary>
public enum AuthorizationStatus
{
    /// <summary>
    /// 表示操作成功
    /// </summary>
    [LocalizedDescription("String_AuthStatus_200", typeof(ResDaprPlus))]
    Ok = 200,

    /// <summary>
    /// 表示未经授权
    /// </summary>
    [LocalizedDescription("String_AuthStatus_401", typeof(ResDaprPlus))]
    Unauthorized = 401,

    /// <summary>
    /// 表示禁止访问
    /// </summary>
    [LocalizedDescription("String_AuthStatus_403", typeof(ResDaprPlus))]
    Forbidden = 403,

    /// <summary>
    /// 表示未找到资源
    /// </summary>
    [LocalizedDescription("String_AuthStatus_404", typeof(ResDaprPlus))]
    NotFound = 404,

    /// <summary>
    /// 表示服务器内部错误
    /// </summary>
    [LocalizedDescription("String_AuthStatus_500", typeof(ResDaprPlus))]
    Error = 500
}
